var xhrObject;

var DEFAULTURL = "http://localhost:8080/dynamicTb/";
	
Event.observe(window, "load", function(){
	createXHR();
}
);

function createXHR() {
	if (xhrObject == null) {
		if(window.ActiveXObject){
			xhrObject = new ActiveXObject("Microsoft.XMLHTTP");
		} else if(window.XMLHttpRequest) {
			xhrObject = new XMLHttpRequest();
		}
	}	
}

function getXHR() {
	return xhrObject;
}